<script>

export default {
  name: "index",
  data() {
    return {
      iconSize: 34,
      list: [
        'https://cdn.uviewui.com/uview/swiper/swiper3.png',
        'https://cdn.uviewui.com/uview/swiper/swiper2.png',
        'https://cdn.uviewui.com/uview/swiper/swiper1.png',
      ],
      urls: {
        enter: '/pages/investor/home/information-audit/index', // 信息录入
        completionAudit: '/pages/investor/home/completion-audit/index', // 完工审核
      }
    }
  },
  methods: {
    click() {
      uni.showToast({
        title: '点击了',
        icon: 'none'
      })
    },
    toPage(url) {
      uni.navigateTo({
        url: url
      })
    },
  }
}
</script>

<template>
  <view class="home">
    <!--<u-swiper-->
    <!--    :list="list"-->
    <!--&gt;</u-swiper>-->
    <!--待处理信息-->
    <view class="module">
      <view class="cell">
        <view class="line cell-hd" />
        <view class="name cell-bd">电站审核</view>
      </view>
      <view class="list">
        <u-grid
            :border="false"
            @click="click"
        >
          <u-grid-item @click="toPage(urls.enter)">
            <!--微标-->
            <!--<u-badge class="badge" type="warning" max="99" value="3"></u-badge>-->
            <u-icon
                name="file-text"
                :size="iconSize"
                color="#1396db"
            ></u-icon>
            <text class="grid-text">信息审核</text>
          </u-grid-item>
          <u-grid-item @click="toPage(urls.completionAudit)">
            <!--微标-->
            <!--<u-badge class="badge" type="warning" max="99" value="3"></u-badge>-->
            <u-icon
                name="file-text"
                color="#1396db"
                :size="iconSize"
            ></u-icon>
            <text class="grid-text">完工审核</text>
          </u-grid-item>
          <u-grid-item @click="toPage(urls.completionAudit)">
            <!--微标-->
            <!--<u-badge class="badge" type="warning" max="99" value="3"></u-badge>-->
            <u-icon
                name="file-text"
                color="#1396db"
                :size="iconSize"
            ></u-icon>
            <text class="grid-text">并网审核</text>
          </u-grid-item>
        </u-grid>
      </view>
    </view>
    <!--安装阶段-->
    <view class="module">
      <view class="cell">
        <view class="line cell-hd" />
        <view class="name cell-bd">项目结算</view>
      </view>
      <view class="list">
        <u-grid
            :border="false"
            @click="click"
        >
          <u-grid-item @click="toPage(urls.design)">
            <!--微标-->
            <!--<u-badge class="badge" type="warning" max="99" value="3"></u-badge>-->
            <u-icon
                name="file-text"
                :size="iconSize"
                color="#1396db"
            ></u-icon>
            <text class="grid-text">项目结算</text>
          </u-grid-item>
        </u-grid>
      </view>
    </view>
    <!--并网阶段-->
    <view class="module">
      <view class="cell">
        <view class="line cell-hd" />
        <view class="name cell-bd">电站查询</view>
      </view>
      <view class="list">
        <!--设置间距-->
        <u-grid
            :border="false"
            :col="3"
            @click="click"
        >
          <u-grid-item @click="toPage(urls.contract)">
            <!--微标-->
            <!--<u-badge class="badge" type="warning" max="99" value="3"></u-badge>-->
            <u-icon
                name="file-text"
                color="#1396db"
                :size="iconSize"
            ></u-icon>
            <text class="grid-text">项目查询</text>
          </u-grid-item>
        </u-grid>
      </view>
    </view>
  </view>
</template>

<style scoped lang="scss">
.home{
  background: #f5f5f5;
  min-height: calc(100vh - 50px);
}
.module{
  padding: 15px 10px;
  background: #fff;
  margin-bottom: 10px;
  border-radius: 5px;
  margin-top: 10px;
  .name{
    line-height: 20px;
    font-size: 14px;
    padding-left: 8px;
  }
  .line{
    width: 4px;
    height: 15px;
    display: inline-block;
    background-color: #113d48;
    border-radius: 2px;
  }
  .list{
    margin-top: 20px;
    font-size: 12px;
    color: #555;
    .badge{
      position: absolute;
      right: -10px;
      top: 10px;
    }
    .item{
      margin-top: 20px;
    }
  }
}
</style>
